using System.Text;
using System;
using System.Collections.Generic;
using AmazeUI.db;
namespace AmazeUI.Bll.GetModel
{
    public class XtNavJson
    {
        public IEnumerable<XtNavJson> XtNavJsons { get; set; }
        public int Id { get; set; }
        public string Name { get; set; }
        public string Remarks { get; set; }
        public string Css { get; set; }
        public string Controllers { get; set; }
        public string Action { get; set; }
        public string Ioc { get; set; }
        public int ParentId { get; set; }
        public bool IsEna { get; set; }
        public bool IsDis { get; set; }
        public XtNavJson() { }
        public XtNavJson(XtNav model)
            : this()
        {
            SetModel(model);
        }

        public void SetModel(XtNav model)
        {
            this.Id = model.Id;
            this.Name = model.Name;
            this.Remarks = model.Remarks;
            this.Css = model.Css;
            this.Controllers = model.Controllers;
            this.Action = model.Action;
            this.Ioc = model.Ioc;
            this.ParentId = model.ParentId;
            this.IsEna = model.IsEna;
            this.IsDis = model.IsDis;
          this.Sid=  model.Sid;
        }

        public int Sid { get; set; }
    }
}
